<!DOCTYPE html>
<html>
<head>
	<title>面试用</title>
</head>
<body>

<!-- <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script> -->
<script>
function fibonacci(n) {
    var n1 = 1, n2 = 1, sum;
    for (let i = 2; i < n; i++) {
        sum = n1 + n2
        n1 = n2
        n2 = sum
    }
    return sum
}
//fibonacci(30)

console.log(fibonacci(6));
</script>
</body>
</html>